package com.os.ordersystem.service;

import com.os.ordersystem.bean.Food;

import java.util.List;
import java.util.Map;

public interface FoodService {
    //添加食品
    public int addFood(Food food);
    //通过id删除食品
    public int delFoodById(Integer id);
    //更新食品
    public int updateFood(Food food);

    //分页查询
    List<Food> getByPage(Map<String, Object> map);
    //获取对应食品数量
    long getTotal(String foodName, Integer foodType);

    Food selectFoodById(Integer key);
}
